//
//  TLTestLabel.h
//  TLLabel
//
//  Created by Tianlong on 2017/6/16.
//  Copyright © 2017年 Tianlong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TLLabel;
@protocol TLLabelDelegate <NSObject>
@optional
-(void)tlLabel:(TLLabel *)label touchedText:(NSString *)touchedText touchedRange:(NSRange)range;
-(void)touchedOtherText:(TLLabel *)label;
@end

@interface TLLabel : UILabel
/** 高亮的属性字典 */
@property (nonatomic , strong) NSDictionary *attributeDict;
/** 指定的高亮文字的数组 */
@property (nonatomic , strong) NSArray *attributeTextArray;
/** 点击的文字、range */
@property (nonatomic, copy) void (^touchedHighLightText)(TLLabel *label, NSString *string, NSRange range);
/** 点击到了别的文字 */
@property (nonatomic, copy) void (^touchedOtherText)();
@property (nonatomic , weak) id<TLLabelDelegate> delegate;
@end
